Generalised estimation of selectivity parameters for fisheries stock assessment