States are inconsistent in reporting data on mentally ill to databases used for background checks for buying guns