Stimulated emission in black holes and in analogue gravity