Construction of Galois representations in cohomology of Shimura curves