On-ground experimental verification of magnetic attitude control for nanosatellites