KLauS: an ASIC for silicon photomultiplier readout and its application in a setup for production testing of scintillating tiles