Lattice paths and RNA secondary structures