US soldier pleads guilty to Afghan massacre