On modeling the mechanical behavior of heterostructures with quantum dots