An Empirical Criterion to Classify T Tauri Stars and Substellar Analogs Using Low-Resolution Optical Spectroscopy