Practical electronic ground- and excited-state calculation method for lanthanide complexes based on frozen core potential approximation to 4f electrons