A Hybrid Electromagnetic-triboelectric Nanogenerator as a Self-powered Sensor for Moving Directions