The logarithmic Bogomolov-Tian-Todorov theorem