Optimisation of the electronic properties of graphene devices