Magnetoelectric coupling in the type-I multiferroic ScFeO3