Consistent description of11Be and12Be and of the11Be(d,p)12Be reaction