Study of flexible joints and permanent bends in DNA fragments by brownian dynamics simulations