Self-supervised Learning for IMU-based Human Activity Recognition