Study of the performance of the NA62 small-angle calorimeter at the DAFNE Linac