Optimisation of sandwich panels with functionally graded core and faces