A miniaturized attitude estimation system for a gesture-based input device with fuzzy logic approach