Early detection of changes in visual function in diabetes mellitus