ported support for QuantumESPRESSO and made it more generic (also supports goalf)