Testing and simulation of silicon photomultiplier readouts for scintillators in high-energy astronomy and solar physics