how to write a diagnostic essay