Two-dimensional magnetopolaron coupling to both homopolar and longitudinal optic phonons in the layer compound InSe