Ab initio study of the electron energy loss function in a graphene-sapphire-graphene composite system