Beam dynamics studies for the SPARC project