A computational method for the first passage time p.d.f. of diffusion processes