Geometric description of modular and weak values in discrete quantum systems using the Majorana representation