Obama calls California shootings 'act of terrorism'