Generalised procedure for expressing uncertainty in measurement