Surface engineering of functional materials for biosensors