Generalized Erlangian distribution