When is a compound optically inactive?