Integral p-adic Hodge theory and the weight part of Serre's conjecture for GL(2)