Myanmar's ruling party suffers losses in by-elections