MIDIS: JWST NIRCam and MIRI unveil the stellar population properties of Lyα emitters and Lyman-break galaxies at z ≃ 3–7