Topological states in the noncentrosymmetric superconductors LaPtSi and LaPtGe