Crystal structure and multiferroic behavior of perovskite YFeO3