Adds QE writing.
Fixes 0/1-based bug.
Rewrite of esc_lib, not yet fully functional.
New: same as castep_special_atom but for QE.