Aalborg Universitet Transfer function and near-field detection of evanescent waves