A miniature capacitance dilatometer for thermal expansion and magnetostriction