Calibration of the Swift-UVOT ultraviolet and visible grisms