Downstream Task Guided Masking Learning in Masked Autoencoders Using Multi-Level Optimization