Spatially resolved characterization of electrostatic fluctuations in the scrape-off layer of the CASTOR tokamak