Photoinduced optical absorption in bulk and thin film yttrium iron garnet