Fission barriers of heavy nuclei within a microscopic approach