Complementary filter for attitude estimation