The classification of Nichols algebras over groups with finite root system of rank two