Determination of centers of flexure using the boundary element method