Poor planning and over-optimism contributed to financial problems at New College Lanarkshire while Edinburgh College has made progress, says the Auditor General.