Engineering the electric and magnetic response of all-dielectric metasurfaces through core-shell Mie resonators