Photoluminescence and charge transfer in the prototypical 2D/3D semiconductor heterostructure MoS2/GaAs