A simple spectrophotometric determination of dissociation constants of organic compounds