Open string wavefunctions in flux compactifications