Ab initio calculation of the excited states of nitropyrenes