MassFormer: Tandem Mass Spectrum Prediction for Small Molecules using Graph Transformers