some subroutines that can be incorporated into QuantumEspresso to extract data from its output with .xml format