Environmental indices: Theory and practice