vaeac_check_masking_ratio function

Function that checks that the masking ratio argument is valid