Comparative analyses of optical limiting effects in metal nanoparticles and perovskite nanocrystals