Measurement-device-independent quantum key distribution of multiple degrees of freedom of a single photon