Finite element modelling of nanoscale inhomogeneities in an elastic matrix