Refactor Inflector#demodulize and improve its documentation

An alternative implementation which reads better than ranges IMHO.