The VVV survey: Long-period variable stars