Hamas sees opportunity in change in Egypt