Gravar-mail: A new method of mark detection for software-based optical mark recognition