Erbium-doped yttrium aluminum garnet as a magnetic refrigerant for low temperature x-ray detectors