Line formation in AGB atmospheres including velocity effects Molecular line profile variations of long period variables