A diagnostic of gyrotron cathodes quality based on their current-voltage characteristics