Very massive stars, pair-instability supernovae and intermediate-mass black holes with the SEVN code