Layer charge determination by alkylammonium ions