A numerical approach for limit analysis of composite structural elements