Low-threshold lasing in photonic-crystal heterostructures