Casson invariants via virtual fundamental cycles