Weights of Galois representations associated to Hilbert modular forms