Sufficient conditions for the continuity of stationary gaussian processes and applications to random series of functions