Simultaneous inversion of shear modulus and traction boundary conditions in biomechanical imaging