Particle production from marginally trapped surfaces of general spacetimes