Nonmonotone inexact restoration approach for minimization with orthogonality constraints