Attitude determination of passively magnetically stabilized nano satellites