Polar octahedral rotations, cation displacement and ferroelectricity in multiferroic SmCrO3