On the capability of finite groups of class two and prime exponent