Radiation from moving mirrors and from black holes