Magnetoelastic coupling and magnetocaloric effect in hexagonal Mn-Fe-P-Si compounds