fixed bug in calc_selectivity for sex-dependent selectivity curves