Cryogenic composite detectors for the dark matter experiments CRESST and EURECA