Photostability and loss mechanism of solid-state red perylimide dye lasers