Magnetic analysis of MnAs films grown on GaAs and Si substrates for potential spintronics and magnetocaloric applications