The log-canonical threshold of a plane curve