Fluctuation analysis of nonideal shot noise. Application to the neuromuscular junction