A sharp multiplier theorem for Grushin operators in arbitrary dimensions