Optimal reinsurance with concave ceded loss functions under VaR and CTE risk measures