Koszul and generalized Koszul properties for noncommutative graded algebras