A simple algorithm to find the L-curve corner in the regularisation of ill-posed inverse problems