Optical limiting based on multiphoton processes in carbon nanostructures and heterocyclic quadrupolar molecules