Solution of quasi-periodic fracture problems by the representative cell method