Nonnegative matrices which are equal to their generalized inverse