San Bernardino files for bankruptcy