Attitude Determination and Attitude Estimation for Earth Observing 1U CubeSats: A Tutorial