Superconductivity and magnetism in noncentrosymmetric LaPtGe3 and CePtGe3