A functional analysis approach to the static replication of European options