Optimal reinsurance from the perspectives of both insurers and reinsurers under the VaR risk measure and Vajda condition