Gyratons on direct-product spacetimes