Adaptive filter for a miniature MEMS based attitude and heading reference system