A boundary elements approach to identify static boundary conditions in elastic solids from stresses at internal points