minimum deviation of prism formula class 12 derivation