UP's ex-chief secretary gets 3-year jail