Ideal homoatomic and heteroatomic photonic crystal molecules