Learned quantization and its benefits for multimodal deep learning for Earth observation