Noninner automorphisms of order p for finite p-groups of coclass 2