Forward modelling of neural activity