Bound states in the continuum in open quantum billiards with a variable shape