Graphite intercalation compounds with ReF6 and TcF6: Electronic and magnetic properties