Tunisia faces loss of more than $500m in tourism over attacks