Design of molecular devices based on metalloproteins: a new approach