Programs for calculation of XAS and XES including vibrational effects