Invia SMS: Attitude determination and control of a CubeSat nanosatellite