Energy dependence of analysing power in elastic and inelastic scattering of 3He by 12C